from django.conf.urls import patterns, include, url
from django.conf import settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from umwork.views import *

urlpatterns = patterns('',
   (r'^bootstrap/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.MEDIA_ROOT,}),
    # Examples:
    # url(r'^$', 'umework.views.home', name='home'),
    # url(r'^umework/', include('umework.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    (r'^$',host),
    (r'register.html$',register),
    (r'^host.html$',host),
    (r'^hostadd.html$',hostadd),
    (r'^hostadds.html$',hostadds),
    (r'^hostdel/(\d{1,}).html$',hostdel),
    (r'^hostupdate/(\d{1,}).html$',hostupdate),
    (r'^groupadd.html$',groupadd),
    (r'^groupdel/(\d{1,}).html$',groupdel),
    (r'^infoupdate/(\d{1,}).html$',infoupdate),
    (r'^cmd.html$',cmd),
    (r'^morecmd.html$',morecmd),    
    (r'^saltcmd.html$',saltcmd),
    (r'^install.html$',install),
    (r'^addinstall.html$',addinstall),
    (r'^installdel/(\d{1,}).html$',installdel),
    (r'^config.html$',config),
    (r'^addmserver.html$',addmserver),
    (r'^mserverdel/(\d{1,}).html$',mserverdel),
    (r'^mserverstart/(\d{1,})/(\d{1,}).html$',mserverstart),
    (r'^mserverrestop/(\d{1,})/(\d{1,}).html$',mserverrestart),
    (r'^mserverstop/(\d{1,})/(\d{1,}).html$',mserverstop),
    (r'^codeup.html$',codeup),
    (r'^addwebserver.html$',addwebserver),
    (r'^webserverdel/(\d{1,}).html$',webserverdel),
    (r'^useradd.html$',useradd),
    (r'^userinfo.html$',userinfo),
    (r'^usermod/(\d{1,}).html$',usermod),
    (r'^userdel/(\d{1,}).html$',userdel),
    (r'^userpasswd/(\d{1,}).html$',userpasswd),
    (r'^usergroup.html$',usergroup),
    (r'^department.html$',department),
    (r'^taskinfo.html$',taskinfo),
    (r'^taskadd.html$',taskadd),
    (r'^taskdel/(\d{1,}).html$',taskdel),
    (r'^ireleasetask.html$',ireleasetask),
    (r'^login.html$',login),
    (r'^logout.html$',logout),
    (r'^myhome.html$',myhome),
    (r'^mytask/(\d{1,}).html$',mytask),  
    (r'^mymessage.html$',mymessage),
    (r'^upload.html$',ke_upload_view),
    (r'^msg.html$',msg),
)
